<?php
    if (empty($this->ads_count))
        $this->ads_count = "1";
?>
<div class="rtitle sponsored-title">
    Advertisements
</div>
<div class="advs">
    <?php
        for ($i = 1; $i <= $this->ads_count; $i++)
        {
            ?>
            <a href="#"><img src="<?php echo IMAGES_PATH; ?>/adv1.jpg" alt="adv1" /></a>
            <?php
        }
    ?>
</div>